package com.blog.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.blog.dao.MLoginMapper;
import com.blog.pojo.MLogin;
import com.blog.service.ILoginService;

@Service
public class LoginServiceImpl implements ILoginService {

	
	@Autowired
	private MLoginMapper loginMapper;
	
	@Override
	public MLogin selectUser(String name, String password) {
		
		
		MLogin user = loginMapper.selectByNameAndPass(name,password);
		return user;
	}
	
	
}
